package com.mpyy.handler.purchase;

import com.alibaba.fastjson.JSON;
import com.mpyy.service.purchase.SearchAgentiaTypeSreviceInter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @version 1.0
 * @Descoription SearchAgentiaTypeHandler
 * @Author CG
 * @date 2022-03-23
 */
@Controller
public class SearchAgentiaTypeHandler {
    @Autowired
    @Qualifier(value = "searchAgentiaTypeSreviceImpl")
    private SearchAgentiaTypeSreviceInter agentiaTypeDaoInter;
    @RequestMapping(value = "/searchAgentiaType")
    @ResponseBody
    public  String searchAgentiaType(){
        return JSON.toJSONString(agentiaTypeDaoInter.searchAgentiaType());
    }

}
